package com.lhr.controller;

/**
 * @author liHuiRu
 * @date 2023/2/7 17:11
 * @Description:
 */
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * spring boot 第一个 hello world 控制层
 * @author ldxdcxy
 */
@RestController
public class HelloController {

    /**
     * 获取hello world
     */
    @GetMapping("/getHelloWorld")
    public Map<String,String> getHelloWorld(){
        Map<String,String> resultMap=new HashMap<>();
        resultMap.put("title","hello world");
        resultMap.put("author","lhr");
        return resultMap;
    }
}
